package com.bds.tjj.model.common;

import java.util.Date;

import org.nutz.dao.entity.annotation.Column;

import com.bds.tjj.model.User;

/**
 * Created by guoyu on 2018/1/29.
 */
public class UserSession {
	public final static String sessionKey = "sessionContext";
	public final static String verifyCode = "verifyCode";

	private User user;
	private String user_name;
	private Long user_id;
	private String type;

    private Date start_date;

  
    private Integer day;

	public UserSession(User user) {
		this.user = user;
		this.user_name = user.getUsername();
		this.user_id = user.getId();
		this.type = user.getType();
		this.start_date = user.getStart_date();
		this.day = user.getDay();
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public User getUser() {
		return this.user;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getStart_date() {
		return start_date;
	}

	public void setStart_date(Date start_date) {
		this.start_date = start_date;
	}

	public Integer getDay() {
		return day;
	}

	public void setDay(Integer day) {
		this.day = day;
	}

}
